package com.woniu.shop.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 服务评价表
 * </p>
 *
 * @author malei
 * @since 2023-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_service_evaluate")
@ApiModel(value="ServiceEvaluate对象", description="服务评价表")
public class ServiceEvaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "服务ID")
    private String serviceId;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "评价内容")
    private String evaluateContent;

    @ApiModelProperty(value = "服务星级")
    private Integer serviceStar;

    @ApiModelProperty(value = "评价图片地址")
    private String evaluatePicture;

    @ApiModelProperty(value = "店家回复")
    private String reply;

    @ApiModelProperty(value = "评价状态 0-未回复 1-已回复")
    private String evaluateStatus;

    @ApiModelProperty(value = "逻辑删除;0-未删除，1-已删除")
    @TableLogic
    private String isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;


}
